<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>后台管理系统</title>
    <#include "../../resource.ftl"/>

    <!--标签插件-->
    <link rel="stylesheet" href="../js/jquery-tags-input/jquery.tagsinput.min.css">
    <link href="../css/style.min.css" rel="stylesheet">

    <link rel="stylesheet" href="../js/bootstrap-fileinput/css/fileinput.min.css">
    <link rel="stylesheet" href="../js/bootstrap-fileinput/themes/explorer/theme.css">
</head>

<body>
<div class="container-fluid p-t-15">

    <div class="row" style="font-size: 3px">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header"><h4>系统文件管理</h4></div>
                <div class="card-body">

                    <div id="toolbar" class="toolbar-btn-action">
                        <button id="btn_add" type="button" class="btn btn-primary m-r-5">
                            <span class="mdi mdi-plus" aria-hidden="true"></span>新增
                        </button>
                        <button id="btn_delete" type="button" class="btn btn-danger">
                            <span class="mdi mdi-window-close" aria-hidden="true"></span>删除
                        </button>
                        <button id="btn_gallery" type="button" class="btn btn-success m-r-5">
                            <span class="mdi mdi-check" aria-hidden="true"></span>查看图库
                        </button>
                        <#--                        <button id="btn_edit" type="button" class="btn btn-success m-r-5">-->
                        <#--                            <span class="mdi mdi-check" aria-hidden="true"></span>启用-->
                        <#--                        </button>-->
                        <#--                        <button id="btn_edit" type="button" class="btn btn-warning m-r-5">-->
                        <#--                            <span class="mdi mdi-block-helper" aria-hidden="true"></span>禁用-->
                        <#--                        </button>-->
                    </div>
                    <table id="tb_base"></table>

                </div>
            </div>
        </div>

        <!-- 图片预览模态窗口 -->
        <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog"
             aria-labelledby="exampleModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="exampleModalLabel">文件预览</h4>
                    </div>
                    <div class="modal-body">
                        <img src="" alt="The selected child description">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 新增 -->
        <div class="modal fade" tabindex="-1" role="dialog" data-target=".bs-example-modal-lg"
             aria-labelledby="gridSystemModalLabel"
             id="addObjModal">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="gridSystemModalLabel">文件上传</h4>
                    </div>
                    <div class="modal-body">

                        <form id="addObjForm" method="post" class="site-form" nctype="multipart/form-data">
                            <div class="form-group col-md-13">
                                <div class="container kv-main col-md-12">
                                    <#--<form nctype="multipart/form-data">-->
                                    <input id="uploadfile" class="file" name="file" type="file" multiple>
                                    <#--</form>-->
                                    <hr>
                                </div>
                            </div>

                            <div class="form-group col-md-13">
                                <label for="type">文件类别</label>
                                <div class="form-controls">
                                    <select name="fileCategory" class="form-control" id="fileCategory">
                                        <option value="">请选择文件类型</option>
                                        <option value="文本">文本</option>
                                        <option value="图片">图片</option>
                                        <option value="其他">其他</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-md-13">
                                <label for="description">描述</label>
                                <textarea class="form-control" id="description" name="description" rows="5"
                                          value=""
                                          placeholder="描述"></textarea>
                            </div>
                            <div class="form-group col-md-13">
                                <label>多图上传</label>
                                <div class="form-controls">
                                    <ul class="list-inline clearfix lyear-uploads-pic">
                                        <li class="col-xs-4 col-sm-3 col-md-2">
                                            <figure>
                                                <img src="../images/gallery/15.jpg" alt="图片一">
                                                <figcaption>
                                                    <a class="btn btn-round btn-square btn-primary" href="#!"><i
                                                                class="mdi mdi-eye"></i></a>
                                                    <a class="btn btn-round btn-square btn-danger" href="#!"><i
                                                                class="mdi mdi-delete"></i></a>
                                                </figcaption>
                                            </figure>
                                        </li>
                                        <li class="col-xs-4 col-sm-3 col-md-2">
                                            <figure>
                                                <img src="../images/gallery/16.jpg" alt="图片二">
                                                <figcaption>
                                                    <a class="btn btn-round btn-square btn-primary" href="#!"><i
                                                                class="mdi mdi-eye"></i></a>
                                                    <a class="btn btn-round btn-square btn-danger" href="#!"><i
                                                                class="mdi mdi-delete"></i></a>
                                                </figcaption>
                                            </figure>
                                        </li>
                                        <li class="col-xs-4 col-sm-3 col-md-2">
                                            <figure>
                                                <img src="../images/gallery/17.jpg" alt="图片三">
                                                <figcaption>
                                                    <a class="btn btn-round btn-square btn-primary" href="#!"><i
                                                                class="mdi mdi-eye"></i></a>
                                                    <a class="btn btn-round btn-square btn-danger" href="#!"><i
                                                                class="mdi mdi-delete"></i></a>
                                                </figcaption>
                                            </figure>
                                        </li>
                                        <li class="col-xs-4 col-sm-3 col-md-2">
                                            <a class="pic-add" id="add-pic-btn" href="#!" title="点击上传"></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>


                        </form>

                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary add-obj-btn">点击上传</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 修改 -->
        <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel"
             id="updateObjModal">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="gridSystemModalLabel">修改用户</h4>
                    </div>
                    <div class="modal-body">

                        <form id="updateObjForm" method="post" class="site-form">
                            <div class="form-group">
                                <input type="hidden" class="form-control" name="id"/>
                            </div>
                            <div class="form-group">
                                <label for="userId">用户Id</label>
                                <input type="text" class="form-control" name="userId"
                                       placeholder="请输入用户Id"/>
                            </div>
                            <div class="form-group">
                                <label for="username">用户名</label>
                                <input type="text" class="form-control" name="username"
                                       placeholder="请输入用户名"/>
                            </div>
                            <div class="form-group">
                                <label for="realName">真实名称</label>
                                <input type="text" class="form-control" name="realName"
                                       placeholder="请输入您的真实名称"/>
                            </div>
                            <div class="form-group">
                                <label for="email">邮箱</label>
                                <input type="email" class="form-control" name="email"
                                       aria-describedby="emailHelp" placeholder="请输入正确的邮箱地址"/>
                            </div>
                            <#--<div class="form-group">-->
                            <#--<label for="password">用户密码</label>-->
                            <#--<input type="text" class="form-control" name="password" id="password"-->
                            <#--placeholder="输入您的真实名称"/>-->
                            <#--</div>-->
                        </form>

                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary update-obj-btn">修改提交</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <!-- 文件详情 -->
    <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel"
         id="gridSystemModal">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="gridSystemModalLabel">文件详情</h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-md-4">.col-md-4</div>
                        <div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
                    </div>
                    <div class="row">
                        <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
                        <div class="col-md-2 col-md-offset-4">.col-md-2 .col-md-offset-4</div>
                    </div>
                    <div class="row">
                        <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
                    </div>
                    <div class="row">
                        <div class="col-sm-9">
                            Level 1: .col-sm-9
                            <div class="row">
                                <div class="col-xs-8 col-sm-6">
                                    Level 2: .col-xs-8 .col-sm-6
                                </div>
                                <div class="col-xs-4 col-sm-6">
                                    Level 2: .col-xs-4 .col-sm-6
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary">点击保存</button>
                </div>
            </div>
        </div>
    </div>
</div>

</div>

<script type="text/javascript" src="../js/bootstrap-fileinput/js/plugins/piexif.js"></script>
<script type="text/javascript" src="../js/bootstrap-fileinput/js/plugins/sortable.js"></script>
<script type="text/javascript" src="../js/bootstrap-fileinput/js/fileinput.js"></script>
<script type="text/javascript" src="../js/bootstrap-fileinput/js/locales/zh.js"></script>
<#--<script src="../themes/fas/theme.js" type="text/javascript"></script>-->
<script type="text/javascript" src="../js/bootstrap-fileinput/themes/explorer/theme.js"></script>

<script type="text/javascript" src="/system/file/js/list.js"></script>
</body>
</html>